#ifndef _UDP_H_
#define _UDP_H_

#include <compat_util.h>

#ifdef __cplusplus
extern "C" {
#endif

// sizeof(udphdr_t) = 8
typedef struct udphdr_s {
    uint16_t source; // source port
    uint16_t dest;   // dest   port
    uint16_t len;    // udp length
    uint16_t check;  // checksum
} udphdr_t;

#ifdef __cplusplus
}
#endif

#endif //_UDP_H_
